package cn.com.jrj.base.util;

import java.util.HashMap;
import java.util.Map;

public class CmsChanNumUtil {
	
	private CmsChanNumUtil() {
		
	}
	private static final CmsChanNumUtil instance = new CmsChanNumUtil();
	public static Map<String, String> map = null;  
	//财经频道,股票频道,基金频道,理财频道,期货频道,银行频道,黄金频道,港股频道,外汇频道,专题频道,保险
	//103,010,104,111,107,113,108,001,007,117,115
	public static CmsChanNumUtil getInstance(){
		if (map == null) {
			initMap();
		}		
		return instance;
	}	
	private static void initMap(){
		map = new HashMap<String, String>();  
		map.put("103", "<a href=\"http://finance.jrj.vnet.cn\">财经</a>");
		map.put("010", "<a href=\"http://stock.jrj.vnet.cn\">股票</a>");
		map.put("104", "<a href=\"http://fund.jrj.vnet.cn\">基金</a>");
		map.put("111", "<a href=\"http://money.jrj.vnet.cn\">理财</a>");
		map.put("107", "<a href=\"http://futures.jrj.vnet.cn\">期货</a>");
		map.put("113", "<a href=\"http://bank.jrj.vnet.cn\">银行</a>");
		map.put("108", "<a href=\"http://gold.jrj.vnet.cn\">黄金</a>");
		map.put("001", "<a href=\"http://hk.jrj.vnet.cn\">港股</a>");
		map.put("007", "<a href=\"http://forex.jrj.vnet.cn\">外汇</a>");
		map.put("117", "<a href=\"http://focus.jrj.vnet.cn\">专题</a>");
		map.put("115", "<a href=\"http://insurance.jrj.vnet.cn\">保险</a>");
	}	
	public String getChanName(String s){		
		return map.get(s);
	}	
	
}
